<%--사용안하는 페이지임 --%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/sms_riskI_script.js"></script>-->
</head>
<body>
<div class="box">
      		<h4 class="white">취약성 평가</h4>
        <div class="box-container1">     		
        <form name="riskIDelForm" action="riskIAction.do" method="post">
        	<input type="hidden" name="mode" value="mvlistp_delete"></input>
        	<input type="hidden" name="pro_id" id="pro_id" value="${sessionScope.lastProId }"></input>
        	<table class="table-long" style="table-layout: auto">
      			<tfoot>
      				<tr>
      					<td><div class="align-left" id="tsNmDiv1" style="display: none"><a href="#" class="button1" style="margin:0px;"><span id="tsNm1"></span></a></div></td>
      					<td><div class="align-left" id="tsNmDiv2" style="display: none"><a href="#" class="button1" style="margin:0px;"><span id="tsNm2"></span></a></div></td>
      					<td><div class="align-left" id="tsNmDiv3" style="display: none"><a href="#" class="button1" style="margin:0px;"><span id="tsNm3"></span></a></div></td>
      					<td><div class="align-left" id="tsNmDiv4" style="display: none"><a href="#" class="button1" style="margin:0px;"><span id="tsNm4"></span></a></div></td>
      				</tr>
      				<tr>
      					<td colspan="4">
      						<div class="align-left">
      							<a href="#" class="button1"><span>평가 대상 : ${requestScope.tvchecklistCount.pyungCount } / 전체 수 : ${requestScope.tvchecklistCount.totalCount }</span></a>
      						</div>
	      					<div class="align-right"><!--select class="form-select"><option value="option1">Bulk Options</option>
	      					<option value="option2">Delete All</option></select>
	      					<a href="#" class="button" onclick="javascript: riskIWritePage('mvlist_insertPage')"><span>작성</span></a>
	      					<a href="#" class="button" onclick="javascript: mvlistp_insertPage()"><span>취약성평가대상 생성</span></a>
	      					-->
	                        <a href="#" class="button" onclick="javascript: riskIDelete()"><span>삭제</span></a>
	                        </div>
                        </td>
      				</tr>
      				<tr><td class="spaceLine" colspan="4"></td></tr>
      			</tfoot>
      		</table>
      		<table class="table-long">
      			<colgroup>
				<!-- ie67인지 아닌지 판단 (위=ie)(아래는 그외)--> 
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
							<col width="30px"/>
							<col width="115px"/>
							<col width="115px"/>
							<col width="77px"/>
							<col width="44px"/>
							<col width="40px"/>
							<col width="45px"/>
							<col width="45px"/>
							<col width=""/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="40px"/>
							<col width="125px"/>
							<col width="125px"/>
							<col width="83px"/>
							<col width="50px"/>
							<col width="40px"/>
							<col width="45px"/>
							<col width="45px"/>
							<col width=""/>
							<col width="15px"/>
						</c-rt:otherwise>
					</c-rt:choose>	
				</colgroup>	
      			<thead>
      				<tr>
      					<td class="col-chk" rowspan="2"><input type='checkbox' name='checkAll' onclick="javascript: selectAll()" class="chkCursor"></input></td>
      					<td class="col-rowspanMid" rowspan="2">취약성<br/>평가항목</td>
      					<td class="col-rowspanMid" rowspan="2">취약성명</td>
      					<td class="col-rowspanMid" rowspan="2">모범관행</td>
      					<td class="col-rowspanMid" rowspan="2">항목<br/>중요도</td>
      					<td colspan="2" class="lowPadding1">항목중요도</td>
      					<td class="col-rowspanMid" rowspan="2">최종<br/>점수</td>
      					<td class="col-rowspanMid" rowspan="2">취약점상세</td>
      					<td></td>
      				</tr>
      				<tr>
      					<td class="lowPadding2 col-rowspanMid">구분</td>
      					<td class="lowPadding2 col-rowspanMid">평점</td>
      					<td></td>
      				</tr>
      			</thead>
      		</table>
      		<div class="scrollDIV">
      		<table class="table-long">
      			<colgroup>
				<!-- ie67인지 아닌지 판단 (위=ie)(아래는 그외)--> 
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
							<col width="31px"/>
							<col width="114px"/>
							<col width="114px"/>
							<col width="76px"/>
							<col width="43px"/>
							<col width="40px"/>
							<col width="45px"/>
							<col width="45px"/>
							<col width=""/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="40px"/>
							<col width="125px"/>
							<col width="125px"/>
							<col width="83px"/>
							<col width="50px"/>
							<col width="40px"/>
							<col width="45px"/>
							<col width="45px"/>
							<col width=""/>
							<col width="15px"/>
						</c-rt:otherwise>
					</c-rt:choose>				
				</colgroup>
      			<tbody>
      				<c:choose>
                    	<c:when test="${fn:length(list)!= 0}">
                       	<c:forEach var="list" items="${requestScope.list}" varStatus="status">
	                    			<%--
	                    			<tr onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');" class="odd">
	                    			 --%>
                   			  <tr <c:if test="${status.index%2==0 }">class="odd"</c:if> onclick="allTsNm('${list.v_id }')" onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');">
                    			<td class="col-chk"><input type="checkbox" name="check" id="check${status.index+1 }" class="chkCursor" value='${list.v_id}'></input></td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;"><a href="riskIAction.do?mode=mvlistp_updatePage&v_id=${list.v_id }" class="nor ellipsis" title='${list.vp_item}'>${list.vp_item }</a></div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;"><a href="riskIAction.do?mode=mvlistp_updatePage&v_id=${list.v_id }" class="nor ellipsis" title='${list.v_nm }'>${list.v_nm }</a></div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.good_model }">${list.good_model }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="<fmt:formatNumber value="${list.v_status }" pattern="0"/>">&nbsp;&nbsp;&nbsp;&nbsp;<fmt:formatNumber value="${list.v_status }" pattern="0"/></div>
                    			</td>
                    			<td>
                    				<c:if test="${list.vp_kind!=null }">
                    					<div title="${list.vp_kind }">&nbsp;&nbsp;${list.vp_kind }</div>
                    				</c:if>
                    			</td>
                    			<td>
                    				<c:if test="${list.vp_kind!=null }">
                    					<div title="${list.vp_score }">&nbsp;&nbsp;${list.vp_score }</div>
                    				</c:if>
                    			</td>
                    			<td>
                    				<c:if test="${list.vp_kind!=null }">
                    					<div title="${list.vp_total }">${list.vp_total }</div>
                    				</c:if>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.v_detail }">${list.v_detail }</div>
                    			</td>
                    			<%--
                    			<td style="word-wrap:break-word">
                    				<a href="riskIAction.do?mode=mvlist_updatePage&v_id=${list.v_id }" class="nor" title='${list.ts_nm1 }'>${list.ts_nm1 }</a>
                    			</td>
                    			<td style="word-wrap:break-word">
                    				<a href="riskIAction.do?mode=mvlist_updatePage&v_id=${list.v_id }" class="nor" title='${list.ts_nm2 }'>${list.ts_nm2 }</a>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;"><a href="riskIAction.do?mode=mvlist_updatePage&v_id=${list.v_id }" class="nor ellipsis" title='${list.ts_nm3 }'>${list.ts_nm3 }</a></div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.vp_item }">${list.vp_item }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.good_model }">${list.good_model }</div>
                    			</td>
                    			<td>
                    				<div title="${list.ts_nm4 }">${list.ts_nm4 }</div>
                    			</td>
                    			<td>
                    				<div title="${list.v_status }">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${list.v_status }</div>
                    			</td>
                    			 --%>
                    			
	   					 	<td></td>
                    		</tr>
                    	</c:forEach>
                    	</c:when>
                    	<c:otherwise>
                    		<tr class="odd">
								<td colspan="10"  class="noDataTD">-데이터가 없습니다-</td>
							</tr>
                    	</c:otherwise>
                    	</c:choose>
      			</tbody>
      		</table>  	
      		</div>
      		</form>
      	</div><!-- end of div.box-container1 -->
      	</div> <!-- end of div.box -->
</body>
</html>